package net.togogo.web.entity;

import java.io.Serializable;
import java.util.Date;

public class Answer implements Serializable {
    private Integer id;

    private Integer quid;

    private String anuser;

    private String answer;

    private Date andate;

    private Integer praise;

    private Integer hate;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getQuid() {
        return quid;
    }

    public void setQuid(Integer quid) {
        this.quid = quid;
    }

    public String getAnuser() {
        return anuser;
    }

    public void setAnuser(String anuser) {
        this.anuser = anuser == null ? null : anuser.trim();
    }

    public String getAnswer() {
        return answer;
    }

    public void setAnswer(String answer) {
        this.answer = answer == null ? null : answer.trim();
    }

    public Date getAndate() {
        return andate;
    }

    public void setAndate(Date andate) {
        this.andate = andate;
    }

    public Integer getPraise() {
        return praise;
    }

    public void setPraise(Integer praise) {
        this.praise = praise;
    }

    public Integer getHate() {
        return hate;
    }

    public void setHate(Integer hate) {
        this.hate = hate;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", quid=").append(quid);
        sb.append(", anuser=").append(anuser);
        sb.append(", answer=").append(answer);
        sb.append(", andate=").append(andate);
        sb.append(", praise=").append(praise);
        sb.append(", hate=").append(hate);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}